Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
,,,,,,<<silently>>
Config.ui.stowBarInitially = true;
<<set $spokeToJustin = false>>
<<set $attendedFuneral = false>>
<<set $firstTrade = true>>
<<set $firstDrugs = true>>
<<set $child = "">>
<<set $spouse = "">>
<<set $family = 5>>
<<set $eventOccurred = false>>
<<set $substanceAbuse = 0>>
<<set $firstDrugs = true>>
<<set $money = 35000>>
<<set $happiness = 8>>
<<set $research = false>>
<<set $crime = 0>>
<<set $cheatStock = -1>>
<<set $unhappyCount = 0>>
<<set $gracePeriod = 0>>
<<set $moodList to ["suicidal.", "shittier than ever.", "terrible.", "bad.", "grumpy.", "okay.", "content.", "satisfied.", "pretty good.", "great!", "incredible!!"]>>
<<set $familyOutcomes to ["bad", "okay", "good"]>>
<<set $playerStocks to []>>
<<set $allStocks to []>>
<<set $prevValues to []>>
<<set $heldStocks to []>>
<<for _i = 0; _i < 15; _i++>>
<<set $randName = "">>
<<set $alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ">>
<<for _j to 0; _j lt random(3, 4); _j++>>
<<set $randName += $alphabet[random(0, $alphabet.length - 1)]>>
<</for>>
<<set _price = random(5, 100)>>
<<set _performance = gaussRandom(1, .05)>>
<<set _volatility = Math.abs(gaussRandom(.1, .025))>>
<<run $allStocks.push(new Stock($randName, 0, _price, _performance, _volatility))>>
<<set $prevValues[_i] = _price>>
<</for>>
<<set $events to []>>
<<cacheaudio "MainTheme" "https://www.dropbox.com/s/ak7yqqzgjn48mbm/01.%20Main%20Theme.mp3?dl=1">>
<<cacheaudio "Wifey" "https://www.dropbox.com/s/0zivoyg8ocrp16r/06.%20Wifey.mp3?dl=1">><<cacheaudio "StockTrading" "https://www.dropbox.com/s/i7a5nodn7d5js0j/02.%20Stock%20Trading.mp3?dl=1">><</silently>>\
//[[(Skip intro)|either]]//
<<timed 2s t8n>>
"I QUIT!"
<<next 2s>> You hear yourself yell at your manager of 5 years as you stand in his office and wonder if you've lost your mind.
<<next 3s>> Until today you had been working a stable (well, stable for something related to the exchange) job at the huge advising firm SmartAdvise for 5 years. But today you decided that this was not the life for you.
<<next 6s>> You believe you are a great trader. One whose talents have been wasted on making others rich for far too long!
<<next 5s>> "Have a nice life Morgan!"
<<next 2s>> You shout as you triumphantly walk out of his office, grab your things, and march out the front door, ready to become the greatest trader the market has ever [[known|Title Screen]].
<<audio "MainTheme" volume 0.50>>
<<audio "MainTheme" play>>
<</timed>><<timed 1s t8n>>Hopefully you made the right choice...
<<next 2s>> <img src="https://lh3.googleusercontent.com/pw/ACtC-3cV4Q2Brtf14uPgE75bEEtHfeRJ2bixn603mihPklpzRHGm8L1IyrEPjdaN_L0BSkcbYAydyZVbAIaESVKpF94P2mQarOMPnPUTRDHMN9W09AX3DSb7raf1zu0Y3ppgzj1y5DM0vC79llUkPgEwu24=w720-h300-no?authuser=0">
[[Start Trading!]]
<</timed>><<timed 1s t8n>>\
You open your eyes. It's a new day and a new financial quarter. More importantly it is the beginning of your life as a private trader on the New York stock exchange, the greatest stock market in the world.
<<next 5s>>\
Now that you work for yourself, you don't need to worry about a company holding you back, but you also don't have the safety net of a large firm minimizing your losses [[either]].
<</timed>>
<<timed 1s t8n>>\
As you finish getting ready to leave your house, your 5-year old
[[son]]
[[daughter]]
<</timed>><<set $child="son">>\
As you finish getting ready to leave your house, your 5-year old son sprints into your leg.
"Is today when you start your new job?"
"Yeah it is champ!"
"Are you gonna get a lot of money?!"
"Yes I am!" you say confidently as you pat him on the head and say goodbye to your
[[wife|wife]]
[[husband|husband]]<<set $child="daughter">>\
As you finish getting ready to lave your house, your 5-year old daughter sprints into your leg.
"Is today when you start your new job?"
"Yes it is sweetie!"
"Are you gonna get a lot of money?!"
"Yes I am!" you say confidently as you pat her on the head and say goodbye to your
[[wife|wife]]
[[husband|husband]]<<nobr>>
<<set $playerStocks = []>>
<<set $indices = []>>
<<for _i = 0; _i < $allStocks.length; _i++>>
<<if $allStocks[_i].shares > 0>>
<<run $playerStocks.push($allStocks[_i])>>
<<run $indices.push(_i)>>
<<endif>>
<</for>><</nobr>>\
__''Financial Status''__
Savings: $$$money
Stocks Owned:
<<if $playerStocks.length == 0>>\
None! Go buy some stocks you loser!\
<<else>>\
<<if $substanceAbuse >= 10>>\
''//It's too hard for you to keep track of all the changing stock prices//''
<<endif>>\
Company Name / # Shares / Price per share / Change since purchased
<<for _i = 0; _i < $playerStocks.length; _i++>>\
<<set _priceDiff = $playerStocks[_i].price - $prevValues[$indices[_i]]>>\
$playerStocks[_i].name / $playerStocks[_i].shares / $$$playerStocks[_i].price / <<nobr>>
<<if $substanceAbuse >= 10>>
<span class = "heavyBlur">
<<if _priceDiff < 0>>
<span class = "red"><<print _priceDiff>></span>
<<elseif _priceDiff > 0>>
<span class = "green"><<print _priceDiff>></span>
<<else>>
<<print _priceDiff>>
<<endif>></span>
<<else>>
<<if _priceDiff < 0>>
<span class = "red"><<print _priceDiff>></span>
<<elseif _priceDiff > 0>>
<span class = "green"><<print _priceDiff>></span>
<<else>>
<<print _priceDiff>>
<<endif>><<endif>><</nobr>>
<</for>>\
<<endif>>
__''Mental State''__
You feel $moodList[$happiness]
<<nobr>>
<<if $firstVisit == true>>
<<set $firstVisit = false>>
[[Back to work.|Work]]
<<else>>
<<return "Back to work.">>
<<endif>>
<</nobr>><img src = "https://lh3.googleusercontent.com/pw/ACtC-3czcldzvxSgbEtitC1FJAA0D1DiCsxM-jSTwvWG463cnVPTe3bWRefv-UvnJqDlr5JJWuPZW2bjLMJgyqQAruRxVJ7QN1vcoxnVuuyuMl_2eq8x4nOYrAt20fSv5XvLdjN_3B6TiNet3gf77rNAOxQ=w720-h300-no?authuser=0"><<set $eventOccurred = false>>\
You are at work.
You hear the clacking of keyboards and the scent of coffee fills the air. Maybe you should [[talk to your friend Justin]] or [[make some trades on the market|trade]].
<<nobr>><<audio "MainTheme" stop>>
<<audio "Wifey" stop>>
<<audio "StockTrading" volume 0.50>>
<<audio "StockTrading" loop play>><</nobr>>
<<set $eventOccurred = false>><<set $purchased = []>>\
<<set $soldStocks = false>>\
''Remember you need at least $1500 to pay your bills!''
[[Buy]]
[[Sell]]
[[No trading today|Time passes.]]<<set $spouse="wife">>\
<<set $firstVisit = true>>\
You leave your house and head to the limited liability company (LLC) you and a few of the other independant traders you know have set up. The "company" is really just a small office suited for 5-7 people where you can all work, talk about market trends, and so on.
The LLC also keeps the IRS from unfairly taxing you and helps protect your [[assets]].<<set $spouse="husband">>\
<<set $firstVisit = true>>\
You leave your house and head to the limited liability company (LLC) you and a few of the other independant traders you know have set up. The "company" is really just a small office suited for 5-7 people where you can all work, talk about market trends, and so on.
The LLC also keeps the IRS from unfairly taxing you and helps protect your [[assets]].<<if $spokeToJustin == false>>\
Justin is your long-time friend. He became an independant trader years before you did. He was the one who originally encouraged you to quit and join him in his LLC. He is a charasmatic and clever fellow but also lives on the edge and isn't particularly fond of being forced to follow rules.
"How are you Justin?" you [[ask]].
<<else>>\
Justin is hanging out by the water cooler
...wait a minute, when did we get a water cooler? He must've brought one himself. Wow.
You've been lost in thought for a while now, and Justin has definitely noticed you. You should probably say something...
[[Ask for a trading tip]]
[[Ask him about his 'interesting info']]
<<endif>><<set $spokeToJustin = true>>
"Not bad, not bad at all my friend. What do you think of our little office here?"
You two exchange some small talk for a while and you eventually break it off to get back to work. But before you can leave, Justin says,
"One more thing, keep this between us but I just wanted to let you know that I have some friends who give me some interesting info every once in a while. So, just come talk to me if you ever wanna get ahead of the game. Oh! And, in case you ever need it..."
He hands you a crumpled up piece of paper as if you had asked for it. A phone number and the word "DRUGS" are messily scribbled on its surface. Discreet.
You quickly thank him for the offer and phone number and [[go back to your desk|trade]]. Sometimes you wonder about Justin.<<nobr>><<set $spoke_to_justin = true>>
<<if $cheatStock != -1 && $purchased[$cheatStock]>>
<<set $crime += 2>>
<<endif>>
<<set $playerStocks = []>>
<<set $indices = []>>
<<for _i = 0; _i < $allStocks.length; _i++>>
<<if $allStocks[_i].shares > 0>>
<<run $playerStocks.push($allStocks[_i])>>
<<run $indices.push(_i)>>
<<endif>>
<</for>>
<<set $totalWorth = $money>>
<<for _i = 0; _i < $playerStocks.length; _i++>>
<<capture _i>>
<<set $totalWorth += $playerStocks[_i].shares * $prevValues[$indices[_i]]>>
<</capture>>
<</for>>
<<set $cashDiff = $totalWorth - $origTotalWorth>>
<<if $soldStocks>>
<<if $cashDiff < -1000>>
<<set $happiness -= 1>>
You had a bad day on the market, which is a bummer.
<<elseif $cashDiff < -5000>>
<<set $happiness -= 3>>
You had a terrible day on the market.
Maybe you aren't cut out for this...
<<elseif $cashDiff > 1000>>
<<set $happiness += 1>>
You had a good day on the market. Nice!
<<elseif $cashDiff > 5000>>
<<set $happiness += 3>>
You had an incredible day on the market!
You're filled with confidence!
<<endif>>
<<endif>>
<<if $happiness > 10>>
<<set $happiness = 10>>
<<elseif $happiness < 0>>
<<set $happiness = 0>>
<<endif>>
<</nobr>>\
<<if $substanceAbuse >= 10>>\
Your body aches and your head hurts. You should go to the [[bar|Bar]] or [[call your 'friend'|Drugs]] to help take the edge off.
<<if $money >= 11500 && !$goneToRehab>>
Alternatively, you could check yourself into [[rehab]] and try to regain control over life.
It's going to be difficult and expensive though... //(-$$10,000)//
<<elseif $money >= 11500 && $goneToRehab>>
You tried to do things the right way, but doing things the right way is just. So. //''HARD''//.
When life gets too stressful, taking the easy way out is... well, really easy. Maybe you should go back to [[rehab]]?
<<else>>
You've considered going <<if $goneToRehab>>back <</if>>to rehab, but you can't afford it. If you could just make a little more money maybe you could <<if $goneToRehab>>really <</if>>turn your life around<<if $goneToRehab>> this time<</if>>...
<<endif>>
<<else>>\
The work day is over and you're tired. You decide to:
[[Stay late and research market trends|Stay late]]
[[Go to the bar and unwind with a stiff drink |Bar]]
<<if $spokeToJustin>>\
[[Call Justin's dealer|Drugs]]
<<endif>>\
[[Hit the gym to blow off some steam|Gym]]
<<if $fought>>\
You don't really feel like going home just yet after what happened this morning.
<<else>>\
[[Go home right away and spend some time with your family|Go home right away]]
<</if>>
<<endif>>\
<<nobr>><<audio "StockTrading" stop>>
<<if random(100) < 15 && !$eventOccurred>>
<<goto [[event]]>>
<<endif>>
<<set $fought = false>>
<<if !$eventOccurred>>
<<set $money -= 1500>>
<</if>>
<<if $happiness == 0>>
<<set $gracePeriod += 1>>
<<endif>>
<<if $crime > 4>>
<<set _caught = random($crime)>>
<<if _caught > 5>>
<<goto [[prisonEnding]]>>
<<endif>>
<<elseif $money < 0 && $family < 8>>
<<goto [[brokeEnding]]>>
<<elseif $money < 0>>
<<goto [[brokeWithFamilyEnding]]>>
<<elseif $substanceAbuse > 20>>
<<goto [[drugEnding]]>>
<<elseif $happiness == 0 && $gracePeriod > 1>>
<<goto [[suicideEnding]]>>
<<elseif $money > 100000 && $family > 8>>
<<goto [[richEnding]]>>
<<elseif $money > 100000>>
<<goto [[richLonelyEnding]]>>
<<elseif $family <= 0>>
<<goto [[lonelyEnding]]>>
<<endif>>
<</nobr>>\
<<silently>>
<<set $origTotalWorth = $money>>\
<<for _i = 0; _i < $playerStocks.length; _i++>>\
<<set $origTotalWorth += $playerStocks[_i].shares * $prevValues[$indices[_i]]>>\
<</for>>\
<<for _i = 0; _i < $purchased.length; _i++>>
<<if $purchased[_i]>>
<<set $heldStocks[_i] = true>>
<<endif>>
<</for>>
<<set $purchased = []>>
<<for _i = 0; _i < $allStocks.length; _i++>>
<<capture _i>>
<<set _multiplier = gaussRandom($allStocks[_i].performance, $allStocks[_i].volatility)>>
<<if $research>>
<<set _multiplier += 0.1>>
<<endif>>
<<if _i == $cheatStock>>
<<set _multiplier = 1.4>>
<<set $cheatStock = -1>>
<<endif>>
<<set $allStocks[_i].price = Math.round($allStocks[_i].price * _multiplier)>><</capture>>\
<</for>>
<<set $research = false>>
<</silently>>\
<<nobr>><<if random(10) > 5>>
You get a good night's sleep, <<if $happiness <= 3>> but<<else>>and<<endif>>
<<set $happiness += 1>>
<<else>>
<<set $happiness -= 2>>
You toss and turn all night,<<if $happiness >= 5>> but<<else>> and<<endif>>
<<endif>>
<<if $happiness > 10>>
<<set $happiness = 10>>
<<elseif $happiness < 0>>
<<set $happiness = 0>>
<<endif>>
<</nobr>>\
wake up feeling $moodList[$happiness]
You pay your obscenely high (not to mention, for some reason, daily) bills. //Capitalism.// (-$1500)
<<if $happiness < 4>>\
<<print $newDayMoodText[0]>>
<<elseif $happiness < 8>>\
<<print $newDayMoodText[1]>>
<<else>>
<<print $newDayMoodText[2]>><<endif>>
<<if $family < 3>>\
<<print $newDayFamilyText[0]>>
<<elseif $family < 6>>\
<<print $newDayFamilyText[1]>>
<<else>>\
<<print $newDayFamilyText[2]>><<endif>>
[[Time to go to work.|Work]]<<if not tags().includes("noHeader")>>\
Money: <span id="cash">$$$money</span>
You feel $moodList[$happiness]
[[Look at your stocks|assets]]
<<endif>>"Buy low and sell high, ya dingus!"
[[Thanks...|trade]]<<nobr>>
<<for _i = 0; _i < $allStocks.length * 2; _i++>>
<<set _rand = random($allStocks.length - 1)>>
<<if $allStocks[_rand].shares == 0>>
<<set $cheatStock = _rand>>
<<break>>
<<endif>>
<<if _i == $allStocks.length - 1>>
<<set $cheatStock = -1>>
<<endif>>
<</for>>
<</nobr>>\
<<if $cheatStock !== -1>>\
"If you're looking for a windfall, I have it on //really// good authority that $allStocks[$cheatStock].name is going to do well tomorrow. Trust me."
You trust Justin, but wonder if his source is 100% legal.
<<else>>\
"You have way too many holdings to do this safely. Sell some stocks off and come back."
<<endif>>
You could get in trouble for insider [[trading...|trade]]<<if $happiness < 4>>
<<print $stayLateText[0]>>
<<elseif $happiness < 8>>
<<print $stayLateText[1]>>
<<else>>
<<print $stayLateText[2]>>
<<endif>>\
[[Time to go home|new day]]
<<silently>>
<<set $happiness -= 2>>
<<set $family -= 1>>
<<set $research = true>>
<<if $happiness > 10>>
<<set $happiness = 10>>
<<elseif $happiness < 0>>
<<set $happiness = 0>>
<<endif>>
<</silently>>\<<nobr>><img src = "https://lh3.googleusercontent.com/pw/ACtC-3f7S8dS_0JMn8ehMSAjPGyFqXkGci6aAwuN2pkLxpnjFoig2KT1wfcmlu60jvsFNExwPtkVakL-69v0x_V_IrkyJ0ZPbY5yXq5lCX2eIfxjuNxVEyOBbeMq7sGzvwSZtxrCBrDvK17aJnOAsE1gDcY=w720-h300-no?authuser=0"><</nobr>><<if $happiness < 4>>\
<<print $barText[0]>>
<<elseif $happiness < 8>>
<<print $barText[1]>>
[[It's probably time to go home and get some sleep|new day]]
<<else>>
<<print $barText[2]>>
[[It's probably time to go home and get some sleep|new day]]
<<endif>>\
<<nobr>>
<<set $happiness += 3>>
<<set $family -= 1>>
<<set $substanceAbuse += 2>>
<<if $happiness > 10>>
<<set $happiness = 10>>
<<elseif $happiness < 0>>
<<set $happiness = 0>>
<<endif>>
<</nobr>>\
<<nobr>><img src = "https://lh3.googleusercontent.com/pw/ACtC-3e323hKAkeACo426LFr1XkKe1R2WfKz7Q5r9M_DCNM-wZEiRqOdJy--vmO4R0z59v1VGgiyYoKTzz8UiBts580lIaZWKBQXbTDlImmgSKT7oPffIzlsw11E7PKcaBJ6eqrHwls37L4j50VJfKiqd08=w720-h300-no?authuser=0">
<<audio "StockTrading" stop>><</nobr>>
<<if $firstDrugs>>\
<<set $firstDrugs = false>>\
You dig around in your pockets and find the scrap of paper Justin handed you. Life's been really stressful since you quit your job at the firm, and you just need a little help getting through it all. That's what you tell yourself anyway.
You call the number and a hastened, gruff voice speaks back to you. You tell him what you want, he tells you how much, and the two of you agree to meet in a Burger Prince parking lot. Once there, you give him the $500, he gives you a brown paper bag, and you both quickly drive away.
You pull into an abandoned alley, empty the bag's contents onto your dashboard, and pop a few into your mouth. Pretty soon you feel good. //Really// good. You lose track of time...
<<elseif $goneToRehab && $firstUseAfterRehab>>\
<<set $firstUseAfterRehab = false>>\
Try as you might, you couldn't fight the urges forever. Everything's been so hard lately, just one little hit to help you calm down couldn't hurt. <<timed 5.5s t8n>>Maybe just one more...<</timed>>
<<elseif $happiness < 4>>\
<<print $drugsText[0]>>
<<elseif $happiness < 8>>\
<<print $drugsText[1]>>
<<else>>\
<<print $drugsText[2]>><<endif>>
[[It's getting really late. Time to go home.|new day]]
<<nobr>>
<<set $happiness += 4>>
<<if !$goneToRehab>>
<<set $substanceAbuse += 4>>
<<else>>
<<set $substanceAbuse += 6>>
<</if>>
<<set $family -= 1>>
<<set $money -= 500>>
<<set $firstDrugs = false>>
<<if $happiness > 10>>
<<set $happiness = 10>>
<<elseif $happiness < 0>>
<<set $happiness = 0>>
<<endif>>
<</nobr>>\<<nobr>>
<img src = "https://lh3.googleusercontent.com/pw/ACtC-3fMm55jK3_rIIjQsQfqb0q6K36fnkHBUaVyCq5ocQ0O5U9Bp8Owcdxvbfpol7-w8wkj1FLeClhH6ZBySg53vO1db-P-CpUv32kN2rK8DOiJFBJZCvkedHq5pU86y30QTt5d4RX-9zI43jz9US3Kh5E=w720-h300-no?authuser=0">
<</nobr>><<if $happiness < 4>>
<<print $gymText[0]>>
<<elseif $happiness < 8>>
<<print $gymText[1]>>
<<else>>
<<print $gymText[2]>><<endif>>
[[It's time to go home|new day]]
<<nobr>><<set $happiness += 2>>
<<set $substanceAbuse -= 1>>
<<set _rand = random(1)>>
<<if _rand == 0>>
<<set $family -= 0.5>>
<<endif>>
<<if $happiness > 10>>
<<set $happiness = 10>>
<<elseif $happiness < 0>>
<<set $happiness = 0>>
<<endif>><</nobr>><<nobr>>
<<audio "StockTrading" stop>>
<<audio "Wifey" volume 0.50>>
<<audio "Wifey" loop play>>
<<set _success = random(2)>>
<<set $text = $familyOutcomes[_success]>><</nobr>>
<<if $happiness < 4>>\
<<print $goHomeText[0]>>
<<elseif $happiness < 8>>\
<<print $goHomeText[1]>>
<<else>>\
<<print $goHomeText[2]>>
<<endif>><<nobr>>
<<set $family += 2>>
<</nobr>>\
You should probably [[get some sleep.|new day]]
<<set $happiness += 1>>
<<if $happiness > 10>>
<<set $happiness = 10>>
<<endif>><<if $substanceAbuse >= 10>>\
//It's difficult to concentrate on work when all you can think about is how terrible it feels to be sober...//
<span class = "blur">\
Stocks offered (purchased 100 at a time):
''Name / # of Shares / Price per share''
$allStocks[0].name / <span id="shares0">$allStocks[0].shares</span> / $$$allStocks[0].price <<if $heldStocks[0]>>Held<<else>><<link "Buy">><<if $money > $allStocks[0].price * 100>><<set $purchased[0] = true>><<set $prevValues[0] = $allStocks[0].price>>
<<set $allStocks[0].shares += 100>><<set $money -= $allStocks[0].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares0">>$allStocks[0].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[1].name / <span id="shares1">$allStocks[1].shares</span> / $$$allStocks[1].price <<if $heldStocks[1]>>Held<<else>><<link "Buy">><<if $money > $allStocks[1].price * 100>><<set $purchased[1] = true>><<set $prevValues[1] = $allStocks[1].price>>
<<set $allStocks[1].shares += 100>><<set $money -= $allStocks[1].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares1">>$allStocks[1].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[2].name / <span id="shares2">$allStocks[2].shares</span> / $$$allStocks[2].price <<if $heldStocks[2]>>Held<<else>><<link "Buy">><<if $money > $allStocks[2].price * 100>><<set $purchased[2] = true>><<set $prevValues[2] = $allStocks[2].price>>
<<set $allStocks[2].shares += 100>><<set $money -= $allStocks[2].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares2">>$allStocks[2].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[3].name / <span id="shares3">$allStocks[3].shares</span> / $$$allStocks[3].price <<if $heldStocks[3]>>Held<<else>><<link "Buy">><<if $money > $allStocks[3].price * 100>><<set $purchased[3] = true>><<set $prevValues[3] = $allStocks[3].price>>
<<set $allStocks[3].shares += 100>><<set $money -= $allStocks[3].price * 100>><<replace "#cash">>$$$money<</replace>><<endif>><<replace "#shares3">>$allStocks[3].shares<</replace>><</link>><<endif>>
$allStocks[4].name / <span id="shares4">$allStocks[4].shares</span> / $$$allStocks[4].price <<if $heldStocks[4]>>Held<<else>><<link "Buy">><<if $money > $allStocks[4].price * 100>><<set $purchased[4] = true>><<set $prevValues[4] = $allStocks[4].price>>
<<set $allStocks[4].shares += 100>><<set $money -= $allStocks[4].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares4">>$allStocks[4].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[5].name / <span id="shares5">$allStocks[5].shares</span> / $$$allStocks[5].price <<if $heldStocks[5]>>Held<<else>><<link "Buy">><<if $money > $allStocks[5].price * 100>><<set $purchased[5] = true>><<set $prevValues[5] = $allStocks[5].price>>
<<set $allStocks[5].shares += 100>><<set $money -= $allStocks[5].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares5">>$allStocks[5].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[6].name / <span id="shares6">$allStocks[6].shares</span> / $$$allStocks[6].price <<if $heldStocks[6]>>Held<<else>><<link "Buy">><<if $money > $allStocks[6].price * 100>><<set $purchased[6] = true>><<set $prevValues[6] = $allStocks[6].price>>
<<set $allStocks[6].shares += 100>><<set $money -= $allStocks[6].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares6">>$allStocks[6].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[7].name / <span id="shares7">$allStocks[7].shares</span> / $$$allStocks[7].price <<if $heldStocks[7]>>Held<<else>><<link "Buy">><<if $money > $allStocks[7].price * 100>><<set $purchased[7] = true>><<set $prevValues[7] = $allStocks[7].price>>
<<set $allStocks[7].shares += 100>><<set $money -= $allStocks[7].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares7">>$allStocks[7].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[8].name / <span id="shares8">$allStocks[8].shares</span> / $$$allStocks[8].price <<if $heldStocks[8]>>Held<<else>><<link "Buy">><<if $money > $allStocks[8].price * 100>><<set $purchased[8] = true>><<set $prevValues[8] = $allStocks[8].price>>
<<set $allStocks[8].shares += 100>><<set $money -= $allStocks[8].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares8">>$allStocks[8].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[9].name / <span id="shares9">$allStocks[9].shares</span> / $$$allStocks[9].price <<if $heldStocks[9]>>Held<<else>><<link "Buy">><<if $money > $allStocks[9].price * 100>><<set $purchased[9] = true>><<set $prevValues[9] = $allStocks[9].price>>
<<set $allStocks[9].shares += 100>><<set $money -= $allStocks[9].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares9">>$allStocks[9].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[10].name / <span id="shares100">$allStocks[10].shares</span> / $$$allStocks[10].price <<if $heldStocks[10]>>Held<<else>><<link "Buy">><<if $money > $allStocks[10].price * 100>><<set $purchased[10] = true>><<set $prevValues[10] = $allStocks[10].price>>
<<set $allStocks[10].shares += 100>><<set $money -= $allStocks[10].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares100">>$allStocks[10].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[11].name / <span id="shares11">$allStocks[11].shares</span> / $$$allStocks[11].price <<if $heldStocks[11]>>Held<<else>><<link "Buy">><<if $money > $allStocks[11].price * 100>><<set $purchased[11] = true>><<set $prevValues[11] = $allStocks[11].price>>
<<set $allStocks[11].shares += 100>><<set $money -= $allStocks[11].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares11">>$allStocks[11].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[12].name / <span id="shares12">$allStocks[12].shares</span> / $$$allStocks[12].price <<if $heldStocks[12]>>Held<<else>><<link "Buy">><<if $money > $allStocks[12].price * 100>><<set $purchased[12] = true>><<set $prevValues[12] = $allStocks[12].price>>
<<set $allStocks[12].shares += 100>><<set $money -= $allStocks[12].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares12">>$allStocks[12].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[13].name / <span id="shares13">$allStocks[13].shares</span> / $$$allStocks[13].price <<if $heldStocks[13]>>Held<<else>><<link "Buy">><<if $money > $allStocks[13].price * 100>><<set $purchased[13] = true>><<set $prevValues[13] = $allStocks[13].price>>
<<set $allStocks[13].shares += 100>><<set $money -= $allStocks[13].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares13">>$allStocks[13].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[14].name / <span id="shares14">$allStocks[14].shares</span> / $$$allStocks[14].price <<if $heldStocks[14]>>Held<<else>><<link "Buy">><<if $money > $allStocks[14].price * 100>><<set $purchased[14] = true>><<set $prevValues[14] = $allStocks[14].price>>
<<set $allStocks[14].shares += 100>><<set $money -= $allStocks[14].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares14">>$allStocks[14].shares<</replace>><<endif>><</link>><<endif>>\
</span>\
<<else>>\
Stocks offered (purchased 100 at a time):
''Name / # of Shares / Price per share''
$allStocks[0].name / <span id="shares0">$allStocks[0].shares</span> / $$$allStocks[0].price <<if $heldStocks[0]>>Held<<else>><<link "Buy">><<if $money > $allStocks[0].price * 100>><<set $purchased[0] = true>><<set $prevValues[0] = $allStocks[0].price>>
<<set $allStocks[0].shares += 100>><<set $money -= $allStocks[0].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares0">>$allStocks[0].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[1].name / <span id="shares1">$allStocks[1].shares</span> / $$$allStocks[1].price <<if $heldStocks[1]>>Held<<else>><<link "Buy">><<if $money > $allStocks[1].price * 100>><<set $purchased[1] = true>><<set $prevValues[1] = $allStocks[1].price>>
<<set $allStocks[1].shares += 100>><<set $money -= $allStocks[1].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares1">>$allStocks[1].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[2].name / <span id="shares2">$allStocks[2].shares</span> / $$$allStocks[2].price <<if $heldStocks[2]>>Held<<else>><<link "Buy">><<if $money > $allStocks[2].price * 100>><<set $purchased[2] = true>><<set $prevValues[2] = $allStocks[2].price>>
<<set $allStocks[2].shares += 100>><<set $money -= $allStocks[2].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares2">>$allStocks[2].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[3].name / <span id="shares3">$allStocks[3].shares</span> / $$$allStocks[3].price <<if $heldStocks[3]>>Held<<else>><<link "Buy">><<if $money > $allStocks[3].price * 100>><<set $purchased[3] = true>><<set $prevValues[3] = $allStocks[3].price>>
<<set $allStocks[3].shares += 100>><<set $money -= $allStocks[3].price * 100>><<replace "#cash">>$$$money<</replace>><<endif>><<replace "#shares3">>$allStocks[3].shares<</replace>><</link>><<endif>>
$allStocks[4].name / <span id="shares4">$allStocks[4].shares</span> / $$$allStocks[4].price <<if $heldStocks[4]>>Held<<else>><<link "Buy">><<if $money > $allStocks[4].price * 100>><<set $purchased[4] = true>><<set $prevValues[4] = $allStocks[4].price>>
<<set $allStocks[4].shares += 100>><<set $money -= $allStocks[4].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares4">>$allStocks[4].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[5].name / <span id="shares5">$allStocks[5].shares</span> / $$$allStocks[5].price <<if $heldStocks[5]>>Held<<else>><<link "Buy">><<if $money > $allStocks[5].price * 100>><<set $purchased[5] = true>><<set $prevValues[5] = $allStocks[5].price>>
<<set $allStocks[5].shares += 100>><<set $money -= $allStocks[5].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares5">>$allStocks[5].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[6].name / <span id="shares6">$allStocks[6].shares</span> / $$$allStocks[6].price <<if $heldStocks[6]>>Held<<else>><<link "Buy">><<if $money > $allStocks[6].price * 100>><<set $purchased[6] = true>><<set $prevValues[6] = $allStocks[6].price>>
<<set $allStocks[6].shares += 100>><<set $money -= $allStocks[6].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares6">>$allStocks[6].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[7].name / <span id="shares7">$allStocks[7].shares</span> / $$$allStocks[7].price <<if $heldStocks[7]>>Held<<else>><<link "Buy">><<if $money > $allStocks[7].price * 100>><<set $purchased[7] = true>><<set $prevValues[7] = $allStocks[7].price>>
<<set $allStocks[7].shares += 100>><<set $money -= $allStocks[7].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares7">>$allStocks[7].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[8].name / <span id="shares8">$allStocks[8].shares</span> / $$$allStocks[8].price <<if $heldStocks[8]>>Held<<else>><<link "Buy">><<if $money > $allStocks[8].price * 100>><<set $purchased[8] = true>><<set $prevValues[8] = $allStocks[8].price>>
<<set $allStocks[8].shares += 100>><<set $money -= $allStocks[8].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares8">>$allStocks[8].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[9].name / <span id="shares9">$allStocks[9].shares</span> / $$$allStocks[9].price <<if $heldStocks[9]>>Held<<else>><<link "Buy">><<if $money > $allStocks[9].price * 100>><<set $purchased[9] = true>><<set $prevValues[9] = $allStocks[9].price>>
<<set $allStocks[9].shares += 100>><<set $money -= $allStocks[9].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares9">>$allStocks[9].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[10].name / <span id="shares100">$allStocks[10].shares</span> / $$$allStocks[10].price <<if $heldStocks[10]>>Held<<else>><<link "Buy">><<if $money > $allStocks[10].price * 100>><<set $purchased[10] = true>><<set $prevValues[10] = $allStocks[10].price>>
<<set $allStocks[10].shares += 100>><<set $money -= $allStocks[10].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares100">>$allStocks[10].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[11].name / <span id="shares11">$allStocks[11].shares</span> / $$$allStocks[11].price <<if $heldStocks[11]>>Held<<else>><<link "Buy">><<if $money > $allStocks[11].price * 100>><<set $purchased[11] = true>><<set $prevValues[11] = $allStocks[11].price>>
<<set $allStocks[11].shares += 100>><<set $money -= $allStocks[11].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares11">>$allStocks[11].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[12].name / <span id="shares12">$allStocks[12].shares</span> / $$$allStocks[12].price <<if $heldStocks[12]>>Held<<else>><<link "Buy">><<if $money > $allStocks[12].price * 100>><<set $purchased[12] = true>><<set $prevValues[12] = $allStocks[12].price>>
<<set $allStocks[12].shares += 100>><<set $money -= $allStocks[12].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares12">>$allStocks[12].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[13].name / <span id="shares13">$allStocks[13].shares</span> / $$$allStocks[13].price <<if $heldStocks[13]>>Held<<else>><<link "Buy">><<if $money > $allStocks[13].price * 100>><<set $purchased[13] = true>><<set $prevValues[13] = $allStocks[13].price>>
<<set $allStocks[13].shares += 100>><<set $money -= $allStocks[13].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares13">>$allStocks[13].shares<</replace>><<endif>><</link>><<endif>>
$allStocks[14].name / <span id="shares14">$allStocks[14].shares</span> / $$$allStocks[14].price <<if $heldStocks[14]>>Held<<else>><<link "Buy">><<if $money > $allStocks[14].price * 100>><<set $purchased[14] = true>><<set $prevValues[14] = $allStocks[14].price>>
<<set $allStocks[14].shares += 100>><<set $money -= $allStocks[14].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares14">>$allStocks[14].shares<</replace>><<endif>><</link>><<endif>>\
<<endif>>
[[Sell]]
[[Call it a day.|Time passes.]]<<if $substanceAbuse >= 10>>\
//It's difficult to concentrate on work when all you can think about is how terrible it feels to be sober...//
<span class = "blur">\
Your stocks (sold 100 at a time):
''Name / # of Shares / Price per share''
$allStocks[0].name / <span id="shares0">$allStocks[0].shares</span> / $$$allStocks[0].price <<link "Sell">><<if $allStocks[0].shares > 0>>
<<set $soldStocks = true>><<set $allStocks[0].shares -= 100>><<set $money += $allStocks[0].price * 100>><<set $moneyMade +=$allStocks[0].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares0">>$allStocks[0].shares<</replace>><<endif>><<if $allStocks[0].shares == 0>><<set $heldStocks[0] = false>><<endif>><</link>>
$allStocks[1].name / <span id="shares1">$allStocks[1].shares</span> / $$$allStocks[1].price <<link "Sell">><<if $allStocks[1].shares > 0>><<set $soldStocks = true>><<set $allStocks[1].shares -= 100>><<set $money += $allStocks[1].price * 100>><<set $moneyMade +=$allStocks[1].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares1">>$allStocks[1].shares<</replace>><<endif>><<if $allStocks[1].shares == 0>><<set $heldStocks[1] = false>><<endif>><</link>>
$allStocks[2].name / <span id="shares2">$allStocks[2].shares</span> / $$$allStocks[2].price <<link "Sell">><<if $allStocks[2].shares > 0>><<set $soldStocks = true>><<set $allStocks[2].shares -= 100>><<set $money += $allStocks[2].price * 100>><<set $moneyMade +=$allStocks[2].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares2">>$allStocks[2].shares<</replace>><<endif>><<if $allStocks[2].shares == 0>><<set $heldStocks[2] = false>><<endif>><</link>>
$allStocks[3].name / <span id="shares3">$allStocks[3].shares</span> / $$$allStocks[3].price <<link "Sell">><<if $allStocks[3].shares > 0>>
<<set $soldStocks = true>><<set $allStocks[3].shares -= 100>><<set $money += $allStocks[3].price * 100>><<set $moneyMade +=$allStocks[3].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares3">>$allStocks[3].shares<</replace>><<endif>><<if $allStocks[3].shares == 0>><<set $heldStocks[3] = false>><<endif>><</link>>
$allStocks[4].name / <span id="shares4">$allStocks[4].shares</span> / $$$allStocks[4].price <<link "Sell">><<if $allStocks[4].shares > 0>>
<<set $soldStocks = true>><<set $allStocks[4].shares -= 100>><<set $money += $allStocks[4].price * 100>><<set $moneyMade +=$allStocks[4].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares4">>$allStocks[4].shares<</replace>><<endif>><<if $allStocks[4].shares == 0>><<set $heldStocks[4] = false>><<endif>><</link>>
$allStocks[5].name / <span id="shares5">$allStocks[5].shares</span> / $$$allStocks[5].price <<link "Sell">><<if $allStocks[5].shares > 0>>
<<set $soldStocks = true>><<set $allStocks[5].shares -= 100>><<set $money += $allStocks[5].price * 100>><<set $moneyMade +=$allStocks[5].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares5">>$allStocks[5].shares<</replace>><<endif>><<if $allStocks[5].shares == 0>><<set $heldStocks[5] = false>><<endif>><</link>>
$allStocks[6].name / <span id="shares6">$allStocks[6].shares</span> / $$$allStocks[6].price <<link "Sell">><<if $allStocks[6].shares > 0>>
<<set $soldStocks = true>><<set $allStocks[6].shares -= 100>><<set $money += $allStocks[6].price * 100>><<set $moneyMade +=$allStocks[6].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares6">>$allStocks[6].shares<</replace>><<endif>><<if $allStocks[6].shares == 0>><<set $heldStocks[6] = false>><<endif>><</link>>
$allStocks[7].name / <span id="shares7">$allStocks[7].shares</span> / $$$allStocks[7].price <<link "Sell">><<if $allStocks[7].shares > 0>>
<<set $soldStocks = true>><<set $allStocks[7].shares -= 100>><<set $money += $allStocks[7].price * 100>><<set $moneyMade +=$allStocks[7].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares7">>$allStocks[7].shares<</replace>><<endif>><<if $allStocks[7].shares == 0>><<set $heldStocks[7] = false>><<endif>><</link>>
$allStocks[8].name / <span id="shares8">$allStocks[8].shares</span> / $$$allStocks[8].price <<link "Sell">><<if $allStocks[8].shares > 0>>
<<set $soldStocks = true>><<set $allStocks[8].shares -= 100>><<set $money += $allStocks[8].price * 100>><<set $moneyMade +=$allStocks[8].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares8">>$allStocks[8].shares<</replace>><<endif>><<if $allStocks[8].shares == 0>><<set $heldStocks[8] = false>><<endif>><</link>>
$allStocks[9].name / <span id="shares9">$allStocks[9].shares</span> / $$$allStocks[9].price <<link "Sell">><<if $allStocks[9].shares > 0>>
<<set $soldStocks = true>><<set $allStocks[9].shares -= 100>><<set $money += $allStocks[9].price * 100>><<set $moneyMade +=$allStocks[9].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares9">>$allStocks[9].shares<</replace>><<endif>><<if $allStocks[9].shares == 0>><<set $heldStocks[9] = false>><<endif>><</link>>
$allStocks[10].name / <span id="shares10">$allStocks[10].shares</span> / $$$allStocks[10].price <<link "Sell">><<if $allStocks[10].shares > 0>><<set $soldStocks = true>>
<<set $allStocks[10].shares -= 100>><<set $money += $allStocks[10].price * 100>><<set $moneyMade +=$allStocks[10].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares10">>$allStocks[10].shares<</replace>><<endif>><<if $allStocks[10].shares == 0>><<set $heldStocks[10] = false>><<endif>><</link>>
$allStocks[11].name / <span id="shares11">$allStocks[11].shares</span> / $$$allStocks[11].price <<link "Sell">><<if $allStocks[11].shares > 0>><<set $soldStocks = true>>
<<set $allStocks[11].shares -= 100>><<set $money += $allStocks[11].price * 100>><<set $moneyMade +=$allStocks[11].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares11">>$allStocks[11].shares<</replace>><<endif>><<if $allStocks[11].shares == 0>><<set $heldStocks[11] = false>><<endif>><</link>>
$allStocks[12].name / <span id="shares12">$allStocks[12].shares</span> / $$$allStocks[12].price <<link "Sell">><<if $allStocks[12].shares > 0>><<set $soldStocks = true>>
<<set $allStocks[12].shares -= 100>><<set $money += $allStocks[12].price * 100>><<set $moneyMade +=$allStocks[12].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares12">>$allStocks[12].shares<</replace>><<endif>><<if $allStocks[12].shares == 0>><<set $heldStocks[12] = false>><<endif>><</link>>
$allStocks[13].name / <span id="shares13">$allStocks[13].shares</span> / $$$allStocks[13].price <<link "Sell">><<if $allStocks[13].shares > 0>><<set $soldStocks = true>>
<<set $allStocks[13].shares -= 100>><<set $money += $allStocks[13].price * 100>><<set $moneyMade +=$allStocks[13].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares13">>$allStocks[13].shares<</replace>><<endif>><<if $allStocks[13].shares == 0>><<set $heldStocks[13] = false>><<endif>><</link>>
$allStocks[14].name / <span id="shares14">$allStocks[14].shares</span> / $$$allStocks[14].price <<link "Sell">><<if $allStocks[14].shares > 0>><<set $soldStocks = true>>
<<set $allStocks[14].shares -= 100>><<set $money += $allStocks[14].price * 100>><<set $moneyMade +=$allStocks[14].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares14">>$allStocks[14].shares<</replace>><<endif>><<if $allStocks[14].shares == 0>><<set $heldStocks[14] = false>><<endif>><</link>></span><<else>>\
Your stocks (sold 100 at a time):
''Name / # of Shares / Price per share''
$allStocks[0].name / <span id="shares0">$allStocks[0].shares</span> / $$$allStocks[0].price <<link "Sell">><<if $allStocks[0].shares > 0>>
<<set $soldStocks = true>><<set $allStocks[0].shares -= 100>><<set $money += $allStocks[0].price * 100>><<set $moneyMade +=$allStocks[0].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares0">>$allStocks[0].shares<</replace>><<endif>><<if $allStocks[0].shares == 0>><<set $heldStocks[0] = false>><<endif>><</link>>
$allStocks[1].name / <span id="shares1">$allStocks[1].shares</span> / $$$allStocks[1].price <<link "Sell">><<if $allStocks[1].shares > 0>><<set $soldStocks = true>><<set $allStocks[1].shares -= 100>><<set $money += $allStocks[1].price * 100>><<set $moneyMade +=$allStocks[1].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares1">>$allStocks[1].shares<</replace>><<endif>><<if $allStocks[1].shares == 0>><<set $heldStocks[1] = false>><<endif>><</link>>
$allStocks[2].name / <span id="shares2">$allStocks[2].shares</span> / $$$allStocks[2].price <<link "Sell">><<if $allStocks[2].shares > 0>><<set $soldStocks = true>><<set $allStocks[2].shares -= 100>><<set $money += $allStocks[2].price * 100>><<set $moneyMade +=$allStocks[2].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares2">>$allStocks[2].shares<</replace>><<endif>><<if $allStocks[2].shares == 0>><<set $heldStocks[2] = false>><<endif>><</link>>
$allStocks[3].name / <span id="shares3">$allStocks[3].shares</span> / $$$allStocks[3].price <<link "Sell">><<if $allStocks[3].shares > 0>>
<<set $soldStocks = true>><<set $allStocks[3].shares -= 100>><<set $money += $allStocks[3].price * 100>><<set $moneyMade +=$allStocks[3].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares3">>$allStocks[3].shares<</replace>><<endif>><<if $allStocks[3].shares == 0>><<set $heldStocks[3] = false>><<endif>><</link>>
$allStocks[4].name / <span id="shares4">$allStocks[4].shares</span> / $$$allStocks[4].price <<link "Sell">><<if $allStocks[4].shares > 0>>
<<set $soldStocks = true>><<set $allStocks[4].shares -= 100>><<set $money += $allStocks[4].price * 100>><<set $moneyMade +=$allStocks[4].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares4">>$allStocks[4].shares<</replace>><<endif>><<if $allStocks[4].shares == 0>><<set $heldStocks[4] = false>><<endif>><</link>>
$allStocks[5].name / <span id="shares5">$allStocks[5].shares</span> / $$$allStocks[5].price <<link "Sell">><<if $allStocks[5].shares > 0>>
<<set $soldStocks = true>><<set $allStocks[5].shares -= 100>><<set $money += $allStocks[5].price * 100>><<set $moneyMade +=$allStocks[5].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares5">>$allStocks[5].shares<</replace>><<endif>><<if $allStocks[5].shares == 0>><<set $heldStocks[5] = false>><<endif>><</link>>
$allStocks[6].name / <span id="shares6">$allStocks[6].shares</span> / $$$allStocks[6].price <<link "Sell">><<if $allStocks[6].shares > 0>>
<<set $soldStocks = true>><<set $allStocks[6].shares -= 100>><<set $money += $allStocks[6].price * 100>><<set $moneyMade +=$allStocks[6].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares6">>$allStocks[6].shares<</replace>><<endif>><<if $allStocks[6].shares == 0>><<set $heldStocks[6] = false>><<endif>><</link>>
$allStocks[7].name / <span id="shares7">$allStocks[7].shares</span> / $$$allStocks[7].price <<link "Sell">><<if $allStocks[7].shares > 0>>
<<set $soldStocks = true>><<set $allStocks[7].shares -= 100>><<set $money += $allStocks[7].price * 100>><<set $moneyMade +=$allStocks[7].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares7">>$allStocks[7].shares<</replace>><<endif>><<if $allStocks[7].shares == 0>><<set $heldStocks[7] = false>><<endif>><</link>>
$allStocks[8].name / <span id="shares8">$allStocks[8].shares</span> / $$$allStocks[8].price <<link "Sell">><<if $allStocks[8].shares > 0>>
<<set $soldStocks = true>><<set $allStocks[8].shares -= 100>><<set $money += $allStocks[8].price * 100>><<set $moneyMade +=$allStocks[8].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares8">>$allStocks[8].shares<</replace>><<endif>><<if $allStocks[8].shares == 0>><<set $heldStocks[8] = false>><<endif>><</link>>
$allStocks[9].name / <span id="shares9">$allStocks[9].shares</span> / $$$allStocks[9].price <<link "Sell">><<if $allStocks[9].shares > 0>>
<<set $soldStocks = true>><<set $allStocks[9].shares -= 100>><<set $money += $allStocks[9].price * 100>><<set $moneyMade +=$allStocks[9].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares9">>$allStocks[9].shares<</replace>><<endif>><<if $allStocks[9].shares == 0>><<set $heldStocks[9] = false>><<endif>><</link>>
$allStocks[10].name / <span id="shares10">$allStocks[10].shares</span> / $$$allStocks[10].price <<link "Sell">><<if $allStocks[10].shares > 0>><<set $soldStocks = true>>
<<set $allStocks[10].shares -= 100>><<set $money += $allStocks[10].price * 100>><<set $moneyMade +=$allStocks[10].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares10">>$allStocks[10].shares<</replace>><<endif>><<if $allStocks[10].shares == 0>><<set $heldStocks[10] = false>><<endif>><</link>>
$allStocks[11].name / <span id="shares11">$allStocks[11].shares</span> / $$$allStocks[11].price <<link "Sell">><<if $allStocks[11].shares > 0>><<set $soldStocks = true>>
<<set $allStocks[11].shares -= 100>><<set $money += $allStocks[11].price * 100>><<set $moneyMade +=$allStocks[11].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares11">>$allStocks[11].shares<</replace>><<endif>><<if $allStocks[11].shares == 0>><<set $heldStocks[11] = false>><<endif>><</link>>
$allStocks[12].name / <span id="shares12">$allStocks[12].shares</span> / $$$allStocks[12].price <<link "Sell">><<if $allStocks[12].shares > 0>><<set $soldStocks = true>>
<<set $allStocks[12].shares -= 100>><<set $money += $allStocks[12].price * 100>><<set $moneyMade +=$allStocks[12].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares12">>$allStocks[12].shares<</replace>><<endif>><<if $allStocks[12].shares == 0>><<set $heldStocks[12] = false>><<endif>><</link>>
$allStocks[13].name / <span id="shares13">$allStocks[13].shares</span> / $$$allStocks[13].price <<link "Sell">><<if $allStocks[13].shares > 0>><<set $soldStocks = true>>
<<set $allStocks[13].shares -= 100>><<set $money += $allStocks[13].price * 100>><<set $moneyMade +=$allStocks[13].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares13">>$allStocks[13].shares<</replace>><<endif>><<if $allStocks[13].shares == 0>><<set $heldStocks[13] = false>><<endif>><</link>>
$allStocks[14].name / <span id="shares14">$allStocks[14].shares</span> / $$$allStocks[14].price <<link "Sell">><<if $allStocks[14].shares > 0>><<set $soldStocks = true>>
<<set $allStocks[14].shares -= 100>><<set $money += $allStocks[14].price * 100>><<set $moneyMade +=$allStocks[14].price * 100>><<replace "#cash">>$$$money<</replace>><<replace "#shares14">>$allStocks[14].shares<</replace>><<endif>><<if $allStocks[14].shares == 0>><<set $heldStocks[14] = false>><<endif>><</link>><<endif>>
[[Buy]]
[[Call it a day.|Time passes.]]<<nobr>><<cacheaudio "Sadness" "https://www.dropbox.com/s/qfn4yfhp0e8w469/05.%20Sadness.mp3?dl=1">>
<<audio "Sadness" volume 0.50>>
<<audio "Sadness" loop play>><<if $spouse == "husband">>
<<set _pro1 = "He">>
<<set _pro2 = "his">>
<<else>>
<<set _pro1 = "She">>
<<set _pro2 = "her">>
<</if>><</nobr>><<timed 1s t8n>>\
You knew this day was coming.<<next 2.5s>>
You have no money to pay your rent this month<<next 3s>>, and your heartless landlord evicts you immediately.<<next 3s>>
You should have told your $spouse you were struggling with finances, but you just couldn't bring yourself to do it...<<next 4s>>
_pro1 is totally blindsided, and you can see _pro2 face twist into the most pained expression you've ever seen. <<next 4s>>
The pain of complete and total loss. <<next 2.5s>>
_pro1 picks your $child up, and walks away from you without saying a word. <<next 4s>>
Your life has lost all meaning. <<next 2.5s>>
You are broken.
<<next 10s>>
<<audio "Sadness" fadeout>>
<<goto [[credits]]>>
<</timed>><<nobr>><<cacheaudio "Sadness" "https://www.dropbox.com/s/qfn4yfhp0e8w469/05.%20Sadness.mp3?dl=1">>
<<audio "Sadness" volume 0.50>>
<<audio "Sadness" loop play>><</nobr>><<timed 1s t8n>>\
You wake up in //''agony''//.<<next 2.5s>>
Your entire body shakes.<<next 2.5s>>
You can't go on like this.<<next 2.5s>>
You ''need'' drugs.<<next 2.5s>>
You leave your house searching for anything that will get you high.<<next 3s>>
And soon you get lost,<<next 1.5s>> first physically,<<next 1.5s>> then mentally.<<next 3s>>
Whoever you used to be is long gone...
<<next 10s>>
<<audio "Sadness" fadeout>>
<<goto [[credits]]>>
<</timed>><<nobr>><<cacheaudio "Sadness" "https://www.dropbox.com/s/qfn4yfhp0e8w469/05.%20Sadness.mp3?dl=1">>
<<audio "Sadness" volume 0.50>>
<<audio "Sadness" loop play>><</nobr>><<timed 1s t8n>>\
Every day is misery. <<next 2.5s>>
The numbers go up.<<next 1.5s>> The numbers go down.<<next 2.5s>>
None of it matters to you anymore.<<next 2.5s>>
You feel empty inside.<<next 2s>> You've //felt// empty inside for a long time now.<<next 4s>>
Life is devoid of meaning.<<next 2.5s>>
Why suffer through such pointless drivel?<<next 2.5s>>
You decide today is the day you take control. <<next 3s>>
You leave everything you have to your $spouse and $child<<next 2s>>, you go somewhere peaceful<<next 1.5s>>, quiet<<next 1s>>, and secluded<<next 2s>>, and you tie yourself up to something sturdy. <<next 3s>>
Then<<next 1.5s>>, you <<next .6s>>d<<next .6s>>r<<next .6s>>o<<next .6s>>p<<next .6s>>.<<next .6s>>.<<next .6s>>.
<<next 10s>>
<<audio "Sadness" fadeout>>
<<goto [[credits]]>>
<</timed>><<nobr>><<cacheaudio "Sadness" "https://www.dropbox.com/s/qfn4yfhp0e8w469/05.%20Sadness.mp3?dl=1">>
<<audio "Sadness" volume 0.50>>
<<audio "Sadness" loop play>>
<<if $spouse == "husband">>
<<set _pro1 = "He">>
<<set _pro2 = "his">>
<<else>>
<<set _pro1 = "She">>
<<set _pro2 = "her">>
<</if>><</nobr>><<timed 1s t8n>>\
You haven't exactly been on great terms with your family for a while now, and today it all comes to a head.<<next 2.5s>>
You get into a heated argument with your <<print $spouse>>, and it turns violent. <<next 2.5s>>
You immediately know that your $spouse will not forgive you this time. <<next 2.5s>>
_pro1 takes your <<print $child>>, and leaves without so much as a second glance at you.
<<next 4s>> Nothing matters to you anymore...
<<next 10s>>
<<audio "Sadness" fadeout>>
<<goto [[credits]]>>
<</timed>><<nobr>><<cacheaudio "FamilyTime" "https://www.dropbox.com/s/7c5h9963lk3kgpk/03.%20Family%20Time.mp3?dl=1">>
<<audio "FamilyTime" volume 0.50>>
<<audio "FamilyTime" loop play>><</nobr>><<timed 1s t8n>>\
You've made more than enough to retire on and you decide that today is finally the day you're going to do it.<<next 3s>>
You start your retirement by simply staying at home.<<next 3s>>
You'll let everyone at the office know, of course, but they can wait a day. <<next 3s>>
You spend the day with your $spouse and <<print $child>>.<<next 4s>>
It's perfect.
<<next 10s>>
<<audio "FamilyTime" fadeout>>
<<goto [[credits]]>>
<</timed>><<nobr>><<cacheaudio "BadDay" "https://www.dropbox.com/s/0682st2t28ge6q0/04.%20Bad%20Day.mp3?dl=1">>
<<audio "BadDay" volume 0.50>>
<<audio "BadDay" loop play>><</nobr>><<timed 1s t8n>>\
You wake up to a loud banging on the door.<<next 2.5s>>
You open the door, and are surpised to see several uniformed officers on the other side. <<next 4s>>
But maybe you shouldn't be...<<next 2.5s>> After all, you've been using Justin's 'source' for quite a while now.<<next 3s>>
Somebody must have found out...
Your scan your brain trying to think of who might've reported you, but it doesn't matter at this point.<<next 4s>>
Maybe you just got caught fair and square.<<next 3.5s>>
Whatever the case, there's no running now. Your $spouse and $child sob uncontrollably as you're escorted away by the police. <<next 4s>>
You wonder when you'll be able to see them again. <<next 3s>>
You wonder //if// you'll be able to see them again.
<<next 10s>>
<<audio "BadDay" fadeout>>
<<goto [[credits]]>>
<</timed>><<nobr>><<cacheaudio "Melancholy" "https://www.dropbox.com/s/063kurv65828maa/07.%20Melancholy.mp3?dl=1">>
<<audio "Melancholy" volume 0.50>>
<<audio "Melancholy" loop play>><</nobr>><<timed 1s t8n>>\
You knew this day was coming...<<next 2.5s>>
It's time to pay rent and you don't have enough to cover it.<<next 3s>>
Your heartless landlord evicts you on the spot. <<next 2.5s>>
But you still have your $spouse and <<print $child>>, who are willing to stand by you through thick and thin. <<next 3s>>
You move in with your <<print $spouse>>'s parents while the two of you look for new work. <<next 3s>>
You may not have become a rich Wall Street big shot, but at least you still have the love of your family. <<next 4s>>
As long as you have each other, you know you'll be okay.
<<next 10s>>
<<audio "Melancholy" fadeout>>
<<goto [[credits]]>>
<</timed>><<nobr>><<cacheaudio "Melancholy" "https://www.dropbox.com/s/063kurv65828maa/07.%20Melancholy.mp3?dl=1">>
<<audio "Melancholy" volume 0.50>>
<<audio "Melancholy" loop play>><</nobr>>
<<nobr>><<if $child == "son">>
<<set _pro = "him">>
<<else>>
<<set _pro = "her">>
<</if>><</nobr>>\
<<timed 1s t8n>>The day starts like any other: you go through the motions of checking your stocks, even though you already know they're going to be doing well.<<next 4s>> Then, you check your bank account and feel very content with the amount of wealth you've amassed.<<next 3s>>
You have it all. <<next 2s>>A loving <<print $spouse>><<next 2s>>, a beautiful <<print $child>><<next 2.5s>>, and all the money in the world. <<next 2.5s>>
Well, $$<<print $money + 1500>> to be exact, but that's more than you'll ever need.<<next 3s>>
Speaking of your $spouse and <<print $child>>, where are they? <<next 3s>>
You didn't hear them get up this morning...<<next 3s>>
You go down to the kitchen, and find a handwritten note on the table.<<next 3s>>
You pick it up, and read:<<next 2.5s>>
It seems lately that the more our finances improve, the more your relationship with me and your $child deteriorates. We barely ever see you outside of our morning meal. You stay out late almost every night doing God knows what. I don't know and I don't want to know what you do or where you go each night, but I'm sure whatever it is, it isn't beneficial to you or your family. We've decided to leave you. Your $child needs a parent who will always be there for <<print _pro>>. We can't wait around for you to show up anymore. You can keep your money. We don't want it. I sincerely hope you find your way, and that you get on to a healthier path than the one you're following now. We will always love you and remember the good times we've shared.
<<next 30s>>
<<audio "Melancholy" fadeout>>
<<goto [[credits]]>>
<</timed>><<set $eventOccurred = true>>
<<set _allEvents = []>>
<<set _negEventChance = new EventChance("neg", random(70 - $happiness * 10))>>
<<run _allEvents.push(_negEventChance)>>
<<set _specialEventChance = new EventChance("special", random(100))>>
<<run _allEvents.push(_specialEventChance)>>
<<set _highest = 0>>
<<set _event = "">>
<<for _i = 0; _i < _allEvents.length; _i++>>
<<if _allEvents[_i].chance > _highest>>
<<set _event = _allEvents[_i].name>>
<<set _highest = _allEvents[_i].chance>>
<<endif>>
<<endfor>>
<<if _event == "neg">>
<<goto [[negEvent]]>>
<<else>>
<<goto [[specialEvent]]>>
<<endif>><<set $happiness -= 2>>\
<<set $family -= 2>>\
<<if $happiness < 6>>\
<<set $fought = true>>\
<<print $argueEvent[0]>>
<<set $money -= 1500>>
<<elseif $family < 4>>\
<<print $argueEvent[1]>>
<<set $money -= 1500>>
<<else>>\
<<set $happiness +=2>><<set $family += 2>>
<<goto [[new day]]>>
<</if>>
[[Continue|Work]]
<<if $happiness < 0>>
<<set $happiness = 0>>
<</if>><<set $newDayMoodText = ["Nothing ever goes your way. What’s the point of going to work every day when you’ll just make another bad trade and you’ll have to come home and tell your family that you’ve failed them again. Maybe it would be better if you just found some hole to die in.",
"\"Another day, another dollar\" as the old saying goes. Things aren’t too bad, but they could definitely be better. You get ready for work with the hopes that you’ll make a big trade today and you try to ignore the fear that it will be a big loss...",
"It's another great day! The air seems sweeter now that you’re your own boss and enjoying every second of it. You feel invincible and eagerly get ready for work. Nothing can stop you."]>>
<<set $newDayFamilyText = ["Your family has suffered because of your greed and neglect. Your $child barely talks to you anymore and you and your $spouse seem to get into a new argument every day. Is there any amount of money that will bring you back to your family?",
"Your family has drifted apart a little because of your job and your other obligations, but they still love you. You and your $spouse argue every once in a while, but so does every married couple, right? Sometimes it’s hard to ignore the guilt you feel when you fail to be there for them. Hopefully they’ll continue to be understanding.",
"It's your family that makes all of the hard work worth it, and nothing warms your heart more than seeing your $spouse and $child waiting for you every day with open arms. You share a special bond of familial love that nothing will ever break."]>>
<<set $gymText = ["You feel terrible and going to the gym helps you blow off some steam. It doesn’t make all the pain go away like drugs or alcohol might, but it’s definitely better for you. And if you haven’t got your health, you haven’t got anything. Right?",
"Even though your day has been pretty mediocre, going to the gym always makes you feel better.",
"The best feeling you can get at the gym is called //''\"DA PUMP\"''// and you are certainly feeling it. You got a great workout today, and are in an even better mood than before."]>>
<<set $barText = ["You sit alone in the bar, drinking away your misery.<<timed 3s t8n>>\n\n...<<next 2.5s>>\n\nHow many drinks have you had?<<next 3s>>\n\nDoesn’t matter.<<next 1.5s>> Order another.<<next 3.5s>>\n\n[[...it's probably time to go home and get some sleep|new day]]<</timed>>",
"A few drinks to liven up a boring day never hurt anybody, right? You knock a few bottles down and head home.",
"You’re drunk on good times and the liquor only makes it better. Why waste this feeling by being sober?"]>>
<<set $drugsText = ["Maybe it’s not the right way to break this slump you’re in, but it feels like the only way. Just a few doses and you can’t even remember what’s wrong. \n\n\n<<timed 4.2s t8n>>\nYou try not to think about what your family would think.<</timed>>",
"Every day is monotony. Every day is the same. Sometimes you just need to break some glass to break up the mundane.",
"Spirits are higher and so are you! When you already feel like you’ve reached the top, there’s only one way to reach higher!"]>>
<<set $stayLateText = ["You feel so tired. Like a herd of bulls has just trampled over you and left you lifeless in the dirt. You pray that this research helps you in the market tomorrow.\n\n<<timed 3s t8n>>Please,<<next 1s>> //please//,<<next 1s>> //''please''//<<next 1s>> let it all be worth something.<</timed>>",
"Today was an average day, but you know tomorrow can be better. Hopefully this extra research will help you make a big trade soon...",
"You’ve been feeling good today and you can make it even better with some big moves on the market tomorrow. A little research should help secure your future success"]>>
<<set $goHomeText = ["Another awful day at work, but burdens are easier to bear when you have people who care about you. You head home straight after work to spend some time with your family, and it eases your mind a little.",
"It's been a tremendously average day for you as you head home to your family. Spending time with them always seems to liven things up.",
"The only thing that brings you more joy than a big trade are the people you (hopefully) hold most dear to your heart. What is the point of having a great day if you can’t share it with your family?"]>>
<<set $soccerEvent = new Event("soccer", ["You go to the soccer game and watch little kids bump into each other for around an hour. Your $child scores an unexpected goal and you’re happy you were there to see it. After the game, you decide to treat your $child to ice cream. You occasionally catch your $spouse and $child gazing at you lovingly for the rest of the day.",
"You decide not to go to the game and your $child and $spouse are both disappointed. Your $child looks at you through the window of your <<print $spouse>>’s car with sad little eyes as you turn away and get ready for work. It’s more important anyway."])>>
<<set $funeralEvent = new Event("funeral", ["You did not have the best relationship with your father-in-law, but it meant a lot to your $spouse and her family that you came to the funeral. Besides, what kind of partner would you be if you had left your $spouse to deal with this alone?",
"You never liked your father-in-law, and he lived a long life anyway. What's really important is the here and now. And you have to support your family. Your $spouse is furious with you, but bills don’t pay themselves. She doesn't seem to complain about having a nice roof over her head and plenty of food to eat."])>>
<<set $playEvent = new Event("play", ["Well, the play was no Shakespeare, but it was definitely adorable seeing your <<print $child>>'s class do their best to deliver their lines. Of course, your $child was by far the best performer (at least, that's how it seemed to you), and you're glad you were able to watch the show. Moments like these are worth more than money.",
"Although it breaks your <<print $child>>’s little heart, you decide not to go to the play. This play will be forgotten soon enough anyway, and there’s no need to waste a perfectly good work day watching some amateur production. Maybe if you make enough money you can take the family to a Broadway musical."])>>
<<set $anniversaryEvent = new Event("anniversary", ["You take a break from the stress of work and life, hire a babysitter, and spend a romantic (albeit expensive) day out with your $spouse. The day helps you to remember what is most important to you in life, and brings you and your $spouse closer.",
"Despite your <<print $spouse>>’s angry protests, you manage to get out of your annual anniversary date and dinner. You’ve saved yourself the date money and also the potential losses you would incur by skipping a work day. Now if only someone could explain that to your $spouse..."])>>
<<set $argueEvent = ["It seems like every day your $spouse has something to complain about and eventually you get sick of it. You scream at each other for an hour before you storm off to work. You'll be sleeping in separate rooms tonight.",
"Your $spouse is upset that you never spend time with your family, but it’s only because you’re working hard everyday just to make ends meet. The two of you start to fight, but stop when you realize your $child started crying because of the yelling. You leave the house feeling uneasy."]>>
<<set $carExpense = new Expense(["Your car broke down and you have to pay $$1000 to repair it. Lovely.", "Your car broke down again. Why is it that no matter how new or how nice of a car you have, it always breaks down? You're getting tired of this...", "Guess what? The car needs to have work done again. Yippee!"], 0, 1000)>>
<<set $toiletExpense = new Expense(["Your toilet broke and it will cost $$300 to repair. Is there anything in this house that doesn't break?!",
"Your toilet broke again. Sigh...",
"Your toilet broke //again//. Big surprise."], 0, 300)>>
<<set $roofExpense = new Expense(["The shingles on your roof have gotten old and make your ceiling leak when it rains. You have to pay $$500 for repairs. Another day in paradise.",
"The new shingles are bad already? How did that happen?? Well, you kind of need a functioning roof so you cough up another $500. This is bullshit.",
"Seriously, the shingles? ........goddamn contractors."], 0, 500)>>
<<set $childExpense = new Expense(["Your $child had to have a medical procedure done and it cost you $$1,000. The U.S. healthcare system, am I right?", "Your $child had to have //another// medical procedure. Say goodbye to another $1,000. Ugh.", "//''ANOTHER''// medical procedure??? What is wrong with your <<print $child>>????"], 0, 1000)>>
<<set $allExpenses = []>>
<<run $allExpenses.push($childExpense)>>
<<run $allExpenses.push($roofExpense)>>
<<run $allExpenses.push($toiletExpense)>>
<<run $allExpenses.push($carExpense)>>
<<set $allEvents = []>>
<<run $allEvents.push($soccerEvent)>>
<<run $allEvents.push($funeralEvent)>>
<<run $allEvents.push($playEvent)>>
<<run $allEvents.push($anniversaryEvent)>>
<<goto [[stable]]>><<if $go == 0>><<set $family += 2>><<set $happiness += 1>>\
<<print $soccerEvent.array[0]>>
[[You're tired now. Time to sleep.|new day]]
<<else>><<set $family -= 3>>\
<<print $soccerEvent.array[1]>>
<<set $money -= 1500>>
[[Time to work.|Work]]
<<endif>><<if random(100) < 0>>\
<<set _rand = random(3)>>\
<<set _event = $allExpenses[_rand]>>\
<<if _event.cost > $money>>\
<<goto [[new day]]>>\
<<else>>\
<<print _event.events[_event.count]>>\
<<run _event.increment()>>\
<<set $money -= _event.cost>>\
[[Time to go to work.|Work]]
<</if>>
<<else>>\
<<set _rand = random(3)>>\
<<set _title = $allEvents[_rand].title>>\
<<if _title == "soccer">>\
Your $child has a soccer game today. Your $spouse and $child ask you if you can make it. It seems pretty important to your $child.
<<link "You decide to go to your <<print $child>>'s game instead of working today.">>
<<set $go = 0>>
<<goto [[soccer]]>>
<</link>>
<<link "Work is more important. Your $child will be fine without you.">>
<<set $go = 1>>
<<goto [[soccer]]>>
<</link>>
<<elseif _title == "funeral" && !$attendedFuneral>>\
Your <<print $spouse>>'s father passed away today. He's been sick for a while, so funeral arrangements were already prepared for the day of death. Your $spouse asks you if you're coming, though it doesn't feel much like a question.
<<link "Of course you're going to the funeral. How could you not?">>
<<set $go = 0>>
<<goto [[funeral]]>>
<</link>>
<<link "You can't afford to lose a day of work, no matter who decides to kick the bucket and when.">>
<<set $go = 1>>
<<goto [[funeral]]>>
<</link>>
<<elseif _title == "funeral" && $attendedFuneral>>
<<goto [[new day]]>>
<<elseif _title == "play">>
Your $child is performing in a school play today. <<if $child == "son">>He<<else>>She<</if>> seems very excited about it.
<<link "You go to your child's play instead of working today">>
<<set $go = 0>>
<<goto [[play]]>>
<</link>><<if $child == "son">>\
<<set _pronouns = ["him", "He'll", "he's"]>>\
<<else>>\
<<set _pronouns = ["her", "She'll", "she's"]>>\
<<endif>>
<<link "You love your <<print $child>>, but you have to work to keep _pronouns[0] fed. _pronouns[1] understand when _pronouns[2] older.">>
<<set $go = 1>>
<<goto [[play]]>>
<</link>>
<<elseif _title == "anniversary">>\
It's you and your <<print $spouse>>'s anniversary today. You usually spend the day together to celebrate.
<<link "Why should this year be any different? You might miss out on work, and it might end up being kind of pricey, but it's your anniversary for God's sake!">>
<<set $go = 0>>
<<goto [[anniversary]]>>
<</link>>
<<link "Anniversary's are nice, but without money you can't celebrate anything. Find a way to work today instead.">>
<<set $go = 1>>
<<goto [[anniversary]]>>
<</link>>
<</if>>
<</if>>
<<if $go == 0>><<set $happiness -= 2>><<set $family += 3>>\
<<print $funeralEvent.array[0]>>
[[It was an exhausting day. Time to try to sleep.|new day]]
<<else>><<set $family -= 4>>\
<<print $funeralEvent.array[1]>>
<<set $money -= 1500>>
[[Go to work.|Work]]
<</if>>
<<set $attendedFuneral = true>><<if $go == 0>><<set $family += 2>>\
<<print $playEvent.array[0]>>
[[The day is over and your bed is calling.|new day]]
<<else>><<set $family -= 3>>
<<print $playEvent.array[1]>>
<<set $money -= 1500>>
[[Make that money!|Work]]
<</if>><<if $go == 0>><<set $money -= 500>><<set $family += 3>>\
<<print $anniversaryEvent.array[0]>>
[[You snuggle up in bed with your $spouse and go to sleep.|new day]]
<<else>><<set $family -= 4>>\
<<print $anniversaryEvent.array[1]>>
<<set $money -= 1500>>
[[Go to work.|Work]]
<</if>><<if !$goneToRehab>>
<<timed 0s t8n>><<set $goneToRehab = true>>\
You check yourself into the facility, and try to come to terms with the hell you're about to go through.
<<next 2.5s>>
It takes a lot of work and self-discipline, but after several weeks the staff members think you're ready to check out of the facility.
<<next 3s>>
You've been through a lot, but you've found renewed purpose. You want to prove to your family that you can do right by them, and you're going to start today. From now on, you are no longer a slave to addiction. Life starts again, now.
<<next 3.5s>>
Even still, you can't ignore how easy it can be to relapse. It'd probably be best to completely avoid drugs and alcohol from now on, lest you slip back into your old habits.
<<next 3.5s>>
[[Let's get this show on the road!|new day]]
<</timed>>\
<<else>><<timed 0s t8n>>
Being back here again is embarassing for you, but you know you have to do whatever it takes to get over your sickness.
<<next 3s>>
No matter how hard you fall, you'll always get back up and try again.
<<next 3s>>
Your family needs you, and you need to be able to take care of them. To be there for them.
<<next 3s>>
That's what gets you through this.
<<next 2s>>
[[Time to go home and see your family.|new day]] <</timed>>
<</if>>
<<set $substanceAbuse -= 8>>
<<set $happiness += 1>>
<<set $money -= 10000>>
<<set $firstUseAfterRehab = true>><<cacheaudio "MainTheme" "https://www.dropbox.com/s/ak7yqqzgjn48mbm/01.%20Main%20Theme.mp3?dl=1">><span id = "credits"><<fadeout 1s 3.5s>><<fadein 1s>><img src="https://lh3.googleusercontent.com/pw/ACtC-3cV4Q2Brtf14uPgE75bEEtHfeRJ2bixn603mihPklpzRHGm8L1IyrEPjdaN_L0BSkcbYAydyZVbAIaESVKpF94P2mQarOMPnPUTRDHMN9W09AX3DSb7raf1zu0Y3ppgzj1y5DM0vC79llUkPgEwu24=w720-h300-no?authuser=0"><</fadein>><</fadeout>></span>
<<timed 3s>>\
<<audio "MainTheme" play>>\
<<next 4.5s>>\
<<replace "#credits" t8n>>\
<<fadeout 1s 10.8s>>\
<span class="big">\
Amir Ameri</span>
<<timed 2s t8n>>
"Idea Guy"
<<next 2s>>
Lead Combat Designer
<<next 2s>>
Story Organizer & Assistant Writer
<<next 2s>>
An okay dude
<</timed>>\
<</fadeout>>
<</replace>>\
<<next 12s>>\
<<replace "#credits" t8n>>\
<<fadeout 1s 10.8s>>\
<span class="big">\
Joab Garcia</span>
<<timed 2s t8n>>
Lead Creative Director
<<next 2s>>
Head Artist and Composer
<<next 2s>>
Mexican Man
<<next 2s>>
Also did some CSS stuff
<</timed>>\
<</fadeout>>\
<</replace>>\
<<next 12s>>\
<<replace "#credits" t8n>>\
<<fadeout 1s 12.8s>>\
<span class="big">\
Yosef Jacobson</span>
<<timed 2s t8n>>
"The Boomer"
<<next 2s>>
Lead Programmer
<<next 2s>>
Did more CSS stuff than Joab
<<next 2s>>
Basically did all the work
<<next 2s>>
Suck it, Amir and Joab. I wrote the credits.
<</timed>>\
<</fadeout>>\
<</replace>>\
<<next 14s>>\
<<replace "#credits" t8n>>\
<span class="big">\
The End.</span>
<<timed 2s t8n>>\
<<link "Play again?">>\
<<audio "MainTheme" fadeout>>\
<<goto [[text setup]]>>\
<</link>>
<</timed>>\
<</replace>>\
<</timed>>\